package com.web.flow;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.webflow.config.AbstractFlowConfiguration;
import org.springframework.webflow.definition.registry.FlowDefinitionRegistry;
import org.springframework.webflow.executor.FlowExecutor;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/4/19
 * Time: 11:21
 * To change this template use File | Settings | File Templates.
 */
@Configuration
public class WebFlowConfig extends AbstractFlowConfiguration {

//    @Bean
//    public FlowDefinitionRegistry flowRegistry(){
//        return getFlowDefinitionRegistryBuilder().setBasePath("/WIN-INF/flows").addFlowLocationPattern("/**/*-flow.xml").build();
//    }

//    @Bean
//    public FlowExecutor flowExecutor(){
//        return getFlowExecutorBuilder(flowRegistry()).build();
//    }


}
